package com.silence.reflection;

public class Student_reflection {
    private String name;
    private int age;
    private int gender;
    private String description;

    private Student_reflection() {
        System.out.println("无参构造器");
    }

    public Student_reflection(String name, int age, int gender, String description) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.description = description;
        System.out.println("4参构造器");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Student_reflection{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender=" + gender +
                ", description='" + description + '\'' +
                '}';
    }
}
